<%--
  Created by IntelliJ IDEA.
  User: Z-7
  Date: 2022/3/4
  Time: 20:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="${pageContext.request.contextPath}/resource/bootstrap4/css/bootstrap.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/resource/js/jquery-3.2.1.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resource/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="${pageContext.request.contextPath}/resource/bootstrap4/js/bootstrap.js"></script>
    <title>Title</title>
</head>
<body>
<blockquote class="blockquote text-center">
    <p class="mb-0">支付宝基金</p>
    <footer class="blockquote-footer">基金<cite title="Source Title">购买</cite></footer>
</blockquote>
<jsp:include page="../head.jsp"/>
<div class="container">
    <form action="${pageContext.request.contextPath}/funds/add" method="post">
        <div class="row">
            <div class="col-auto">
                <div class="input-group mb-2">
                    <div class="input-group-prepend">
                        <div class="input-group-text">名称</div>
                    </div>
                    <input type="text" class="form-control" name="name" readonly="readonly" value="${fund.name}">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-auto">
                <div class="input-group mb-2">
                    <div class="input-group-prepend">
                        <div class="input-group-text">基金经理</div>
                    </div>
                    <input type="text" class="form-control" name="manager" readonly="readonly" value="${fund.manager}">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-auto">
                <div class="input-group mb-2">
                    <div class="input-group-prepend">
                        <div class="input-group-text">类型</div>
                    </div>
                    <input type="text" class="form-control" name="manager" readonly="readonly" value="${fund.typeName}">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-auto">
                <div class="input-group mb-2">
                    <div class="input-group-prepend">
                        <div class="input-group-text">当前价格</div>
                    </div>
                    <input type="text" class="form-control" name="manager" readonly="readonly" value="${fund.price}">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-auto">
                <div class="input-group mb-2">
                    <div class="input-group-prepend">
                        <div class="input-group-text">请输入购买的数量</div>
                    </div>
                    <input type="text" class="form-control" name="num" >
                    <input type="hidden" class="form-control" name="id" value="${fund.id}">
                </div>
            </div>
        </div>
        <button type="submit" class="btn btn-primary">购买</button>
    </form>
</div>
</body>
</html>
